package com.zxb.core.log;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.sql.Timestamp;

/**
 * @author Zxb
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysLog {

    private static final long serialVersionUID = 1L;

    public SysLog() {
    }

    @ApiModelProperty(value = "请求ip")
    private String requestIp;
    @ApiModelProperty(value = "请求编码")
    private String requestCode;
    @ApiModelProperty(value = "请求路径")
    private String requestUri;
    @ApiModelProperty(value = "类名")
    private String className;
    @ApiModelProperty(value = "方法名")
    private String methodName;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "token")
    private String token;
    @ApiModelProperty(value = "发起请求时间")
    private Timestamp requestTime;
    @ApiModelProperty(value = "请求参数")
    private String requestParam;
    @ApiModelProperty(value = "请求结果")
    private String requestResult;
    @ApiModelProperty(value = "异常信息")
    private String expInfo;
    @ApiModelProperty(value = "请求耗时")
    private Long spend;
    @ApiModelProperty(value = "请求状态")
    private Integer state;

}
